# $OpenBSD: Makefile,v 1.55 2016/04/26 17:42:20 naddy Exp $

COMMENT=	GTK-based scientific calculator

GH_ACCOUNT=	galculator
GH_PROJECT=	galculator
GH_TAGNAME=	v2.1.4
CATEGORIES=	math
HOMEPAGE=	http://galculator.mnim.org/

MAINTAINER=	Christian Weisgerber <naddy@openbsd.org>

# GPLv2+
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB+= ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB+= Xrandr Xrender atk-1.0 atk-bridge-2.0 atspi c cairo
WANTLIB+= cairo-gobject dbus-1 epoxy expat ffi fontconfig freetype gdk-3
WANTLIB+= gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB+= graphite2 gthread-2.0 gtk-3 harfbuzz iconv intl m pango-1.0
WANTLIB+= pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread
WANTLIB+= pthread-stubs xcb xcb-render xcb-shm z

MODULES=	textproc/intltool

RUN_DEPENDS=	devel/desktop-file-utils \
		x11/gtk+3,-guic
LIB_DEPENDS=	devel/gettext \
		x11/gtk+3

AUTOCONF_VERSION=2.69
AUTOMAKE_VERSION=1.15
BUILD_DEPENDS=	${MODGNU_AUTOCONF_DEPENDS} \
		${MODGNU_AUTOMAKE_DEPENDS} \
		devel/libtool

USE_GMAKE=	Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS=	--disable-quadmath
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib" \
		AUTOCONF_VERSION=${AUTOCONF_VERSION} \
		AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
CONFIGURE_SCRIPT=autogen.sh

.include <bsd.port.mk>
